#ifndef ESP8266_H
#define ESP8266_H

#include "stm32f4xx.h"
#include "stm32f4xx_rcc.h"
#define  DEFAULT_PORT 8086
#define  DEFAULT_ACCOUNT "nikola"
#define  DEFAULT_PASSWORD "q2503865771"


#define  ESP8266_USART USART2

void ESP8266_init();
u8* ESP8266_send_cmd(u8* cmd ,u32 wait_time);

void ESP8266_config();
void ESP8266_mode_STA(u8* wifi_name,u8* password);
u8 ESP8266_mode_AP(u8* wifi_name,u8* password,u8*chenal,u8* port,u8* wap);
u8 ESP8266_mode_STA_and_AP(u8* wifi_name,u8* password,u8*chenal,u8* port,u8* wap);
u8* get_bilibil_follower(u8* UP_VMID);
void get_update_time1(RTC_TimeTypeDef* RTC_TimeStruct,RTC_DateTypeDef* RTC_DateStruct );
#endif // ESP8266_H